<!DOCTYPE html>
<html>
<head>
	
	<title><?php echo _MANAGER_TITLE_; ?></title>

	<?php $this->setFlag('edit'); ?>
	<?php $this->import('meta'); ?>

	<link rel="stylesheet" type="text/css" href="html/manager/common/css/verify.css?v=11" />

    <script type="text/javascript" src="html/manager/common/js/verify.js?v=12"></script>

</head>
<body style="background-color: #ececec;">

	<div id="mainBg" class="bg" style="display: none;">

		<input type="text" id="infoid" class="display-none" />
		<input type="text" id="infoType" class="display-none" />
		<input type="text" id="verifyType" class="display-none" />

		<div class="title-bar2">
			<div id="title" class="title-text">XXXXX</div>
			<div class="title-btn tc5" onclick="back()">关闭</div>
		</div>

		<div class="rect">
			<div class="title">
				<div class="order">1</div>
				<div class="text">选择往期认证信息</div>
			</div>
			<div class="tr1">
				<div class="field1">关键词：</div>
				<div class="value1">
					<input type="text" id="keyword" class="input1 w2" placeholder="请输入商家名称，按回车查询" autocomplete="off" onkeypress="openCompanyBar(event)" />
				</div>
			</div>
			<div id="oldBar" style="display: none;">
				<div class="tr1">
					<div class="field1">商家名称：</div>
					<div class="value1">
						<input type="text" id="oldBusiness" class="input0 w2" readonly="readonly" autocomplete="off" />
						<input type="text" id="oldVerifyid" class="display-none" />
					</div>
				</div>
				<div class="tr1">
					<div class="field1">信用代码：</div>
					<div class="value1">
						<input type="text" id="oldLicense" class="input0 w1" readonly="readonly" autocomplete="off" />
					</div>
				</div>
				<div class="tr0">
					<div class="field3">营业执照：</div>
					<div class="value0">
						<img id="oldLicensePic" src="static/pic/pc/logo_default.jpg" class="img-pic" alt="" />
					</div>
				</div>
				<div class="tr1">
					<div class="field1"></div>
					<div class="value1">
						<div class="button5" onclick="selectVerify()">选取认证</div>
					</div>
				</div>
			</div>
		</div>

		<div class="rect">
			<div class="title">
				<div class="order">2</div>
				<div class="text">手动上传认证资料</div>
			</div>
			<div class="tr1">
				<div class="field1">商家名称：</div>
				<div class="value1">
					<input type="text" id="business" class="input1 w2" placeholder="请输入商家名称" autocomplete="off" />
				</div>
			</div>
			<div class="tr1">
				<div class="field1">信用代码：</div>
				<div class="value1">
					<input type="text" id="license" class="input1 w1" placeholder="请输入证件代码" autocomplete="off" />
				</div>
			</div>
			<div class="tr6">
				<div class="field1">营业执照：</div>
				<div class="value4">
					<div id="selectImg" class="upload-btn">选择图片</div><span class="img-size">图片不大于1M</span><br />
					<img id="licensePic" src="static/pic/pc/logo_default.jpg" class="img-pic" alt="" />
				</div>
			</div>
			<div class="tr1">
				<div class="field1">备注：</div>
				<div class="value1">
					<input type="text" id="remark" class="input1 w2" placeholder="请输入备注（选填）" autocomplete="off" />
				</div>
			</div>
		</div>

		<div class="button1" onclick="saveCompany()">提交资料</div>

	</div>

	<?php $this->import('floatlist'); ?>

	<script type="text/javascript">
        files = '';
	    layui.use('upload', function() {
	        var upload = layui.upload;
	        var uploadInst = upload.render({
	            elem: '#selectImg', 
	            accept: 'images', 
	            acceptMime: 'image/*', 
	            auto: false, 
	            size: 1024, 
	            choose: function(obj) {
	                obj.preview(function(index, file, result) {
	                    getItem('licensePic').src = result;
	                    files = result;
	                });
	            }, 
	        });
	    });
	</script>

</body>
</html>